{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
}}

<div class="field" ...attributes>
  <Hds::Form::TextInput::Field
    @type="text"
    @id={{@id}}
    @value={{this.searchInput}}
    {{on "keyup" this.inputChanged}}
    placeholder={{@placeholder}}
    autocomplete="off"
    data-test-input-search={{@id}}
    as |F|
  >
    {{#if @label}}
      <F.Label>{{@label}}</F.Label>
    {{/if}}
    {{#if @subText}}
      <F.HelperText>{{@subText}}</F.HelperText>
    {{/if}}
  </Hds::Form::TextInput::Field>
</div>